package com.wmx.service;

import org.springframework.scheduling.annotation.Async;

import java.util.concurrent.CountDownLatch;
import java.util.concurrent.Future;

/**********************************
 * @author wmx
 * @date 2019/9/6 14:38
 * @description:
 * @version 1.0
 ************************************/
public interface AsyncService {
    /**
     * 任务一
     * @return
     */
    @Async
    Future<String> doTaskOne(CountDownLatch countDownLatch);

    /**
     * 任务二
     * @return
     */
    @Async
    Future<String> doTaskTwo(CountDownLatch countDownLatch);

    /**
     * 任务三
     * @return
     */
    @Async
    Future<String> doTaskThree(CountDownLatch countDownLatch);
}
